<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class Model</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
						<script src="../../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../../media/images/plus.png";
				imgMinus.src = "../../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Model</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
                <p class="implements">
            Implements interfaces:
            <ul>
                <li>IteratorAggregate (internal interface)</li>            </ul>
        </p>
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">ThinkPHP Model模型类 抽象类</p>
<p class="description"><p>实现了ORM和ActiveRecords模式</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> liu21st &lt;<a href="mailto:liu21st@gmail.com">liu21st@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> $Id$</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Think---Core---Model.class.php.html">/Think/Core/Model.class.php</a> (line <span class="field">34</span>)
		</p>
		
				
		<pre><a href="../../Think/Core/Base.html">Base</a>
   |
   --Model</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																																																																																																																																																																								<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$aggregation" title="details" class="var-name">$aggregation</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoAddRelations" title="details" class="var-name">$autoAddRelations</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoCreateTimestamps" title="details" class="var-name">$autoCreateTimestamps</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoDelRelations" title="details" class="var-name">$autoDelRelations</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoReadRelations" title="details" class="var-name">$autoReadRelations</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoSaveRelations" title="details" class="var-name">$autoSaveRelations</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoTimeFormat" title="details" class="var-name">$autoTimeFormat</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$autoUpdateTimestamps" title="details" class="var-name">$autoUpdateTimestamps</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$blobFields" title="details" class="var-name">$blobFields</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$blobValues" title="details" class="var-name">$blobValues</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$composite" title="details" class="var-name">$composite</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$data" title="details" class="var-name">$data</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$dataList" title="details" class="var-name">$dataList</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$db" title="details" class="var-name">$db</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$error" title="details" class="var-name">$error</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$fields" title="details" class="var-name">$fields</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$lazyQuery" title="details" class="var-name">$lazyQuery</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$name" title="details" class="var-name">$name</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$optimLock" title="details" class="var-name">$optimLock</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$options" title="details" class="var-name">$options</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$pessimisticLock" title="details" class="var-name">$pessimisticLock</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$staticModel" title="details" class="var-name">$staticModel</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$tableName" title="details" class="var-name">$tableName</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$tablePrefix" title="details" class="var-name">$tablePrefix</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$tableSuffix" title="details" class="var-name">$tableSuffix</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$trueTableName" title="details" class="var-name">$trueTableName</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$type" title="details" class="var-name">$type</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$viewModel" title="details" class="var-name">$viewModel</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$_db" title="details" class="var-name">$_db</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																																																																																																																																																																																																		
				<div class="method-definition">
					static 						<span class="method-result">mixed</span>
										<a href="#getInstance" title="details" class="method-name">getInstance</a>
										()
									</div>
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		
				<div class="method-definition">
											<span class="method-result">Model</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#add" title="details" class="method-name">add</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$multi</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#addAll" title="details" class="method-name">addAll</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$dataList</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#addConnect" title="details" class="method-name">addConnect</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$config</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$linkNum</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$eqType</span> = <span class="var-default">true</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#avg" title="details" class="method-name">avg</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#cache" title="details" class="method-name">cache</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$cache</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#cacheLockVersion" title="details" class="method-name">cacheLockVersion</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#checkCondition" title="details" class="method-name">checkCondition</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#checkFields" title="details" class="method-name">checkFields</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#checkGroup" title="details" class="method-name">checkGroup</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#checkLockVersion" title="details" class="method-name">checkLockVersion</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">&$where</span> = <span class="var-default">''</span>], <span class="var-type">array</span>&nbsp;<span class="var-name">$data</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#checkOrder" title="details" class="method-name">checkOrder</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#clear" title="details" class="method-name">clear</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#commit" title="details" class="method-name">commit</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#count" title="details" class="method-name">count</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">'*'</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#create" title="details" class="method-name">create</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$batch</span> = <span class="var-default">false</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#createAll" title="details" class="method-name">createAll</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$dataList</span> = <span class="var-default">''</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#delBlobFields" title="details" class="method-name">delBlobFields</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">''</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#delConnect" title="details" class="method-name">delConnect</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$linkNum</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#delete" title="details" class="method-name">delete</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#deleteAll" title="details" class="method-name">deleteAll</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#deleteBy" title="details" class="method-name">deleteBy</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#deleteById" title="details" class="method-name">deleteById</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#deleteByIds" title="details" class="method-name">deleteByIds</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$ids</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">false</span>
										<a href="#execute" title="details" class="method-name">execute</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#field" title="details" class="method-name">field</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#find" title="details" class="method-name">find</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
										<a href="#findAll" title="details" class="method-name">findAll</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#first" title="details" class="method-name">first</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#flush" title="details" class="method-name">flush</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#getBlobFields" title="details" class="method-name">getBlobFields</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">''</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getBy" title="details" class="method-name">getBy</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getByAll" title="details" class="method-name">getByAll</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">true</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getById" title="details" class="method-name">getById</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getByIds" title="details" class="method-name">getByIds</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$ids</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getCol" title="details" class="method-name">getCol</a>
											(<span class="var-type">ArrayObject</span>&nbsp;<span class="var-name">$rs</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getCols" title="details" class="method-name">getCols</a>
											(<span class="var-type">ArrayObject</span>&nbsp;<span class="var-name">$rs</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$sepa</span> = <span class="var-default">' '</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$spea</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getDbFields" title="details" class="method-name">getDbFields</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getError" title="details" class="method-name">getError</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getField" title="details" class="method-name">getField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getFields" title="details" class="method-name">getFields</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$sepa</span> = <span class="var-default">' '</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$spea</span>)
									</div>
																						
				<div class="method-definition">
											<span class="method-result">Iterate</span>
										<a href="#getIterator" title="details" class="method-name">getIterator</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getLastInsID" title="details" class="method-name">getLastInsID</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getLastSql" title="details" class="method-name">getLastSql</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#getListBlobFields" title="details" class="method-name">getListBlobFields</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$resultSet</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">''</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$resultSet</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getModelName" title="details" class="method-name">getModelName</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getN" title="details" class="method-name">getN</a>
											([<span class="var-type">integer</span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">0</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getPk" title="details" class="method-name">getPk</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getRelation" title="details" class="method-name">getRelation</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$result</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$result</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#getRelations" title="details" class="method-name">getRelations</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$resultSet</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$result</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getRelationTableName" title="details" class="method-name">getRelationTableName</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getTableName" title="details" class="method-name">getTableName</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#group" title="details" class="method-name">group</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#having" title="details" class="method-name">having</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#join" title="details" class="method-name">join</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$join</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#last" title="details" class="method-name">last</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#lazy" title="details" class="method-name">lazy</a>
											(<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#limit" title="details" class="method-name">limit</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$limit</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#lock" title="details" class="method-name">lock</a>
											(<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#max" title="details" class="method-name">max</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#min" title="details" class="method-name">min</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#opRelation" title="details" class="method-name">opRelation</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$opType</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">array()</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#order" title="details" class="method-name">order</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
										<a href="#query" title="details" class="method-name">query</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#rollback" title="details" class="method-name">rollback</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#rsToVo" title="details" class="method-name">rsToVo</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$resultSet</span>, [<span class="var-type">Boolean</span>&nbsp;<span class="var-name">$returnList</span> = <span class="var-default">false</span>], [<span class="var-type">Integer</span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">0</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#save" title="details" class="method-name">save</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#saveBlobFields" title="details" class="method-name">saveBlobFields</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#setDec" title="details" class="method-name">setDec</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#setField" title="details" class="method-name">setField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#setInc" title="details" class="method-name">setInc</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#sql" title="details" class="method-name">sql</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#startLazy" title="details" class="method-name">startLazy</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#startLock" title="details" class="method-name">startLock</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#startTrans" title="details" class="method-name">startTrans</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#stopLazy" title="details" class="method-name">stopLazy</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#stopLock" title="details" class="method-name">stopLock</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#sum" title="details" class="method-name">sum</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#switchConnect" title="details" class="method-name">switchConnect</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$linkNum</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#table" title="details" class="method-name">table</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$table</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#toArray" title="details" class="method-name">toArray</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
										<a href="#topN" title="details" class="method-name">topN</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$count</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
										<a href="#where" title="details" class="method-name">where</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#xFind" title="details" class="method-name">xFind</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
										<a href="#xFindAll" title="details" class="method-name">xFindAll</a>
											([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], <span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_create" title="details" class="method-name">_after_create</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_delete" title="details" class="method-name">_after_delete</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_operation" title="details" class="method-name">_after_operation</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_query" title="details" class="method-name">_after_query</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$result</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_read" title="details" class="method-name">_after_read</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$condition</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$result</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_update" title="details" class="method-name">_after_update</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_after_validation" title="details" class="method-name">_after_validation</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$type</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_create" title="details" class="method-name">_before_create</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_delete" title="details" class="method-name">_before_delete</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_operation" title="details" class="method-name">_before_operation</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_query" title="details" class="method-name">_before_query</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$sql</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_read" title="details" class="method-name">_before_read</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$condition</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_update" title="details" class="method-name">_before_update</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$where</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_before_validation" title="details" class="method-name">_before_validation</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$type</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#_facade" title="details" class="method-name">_facade</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_initialize" title="details" class="method-name">_initialize</a>
										()
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$aggregation" id="$aggregation"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$aggregation</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">76</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoAddRelations" id="$autoAddRelations"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoAddRelations</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">91</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoCreateTimestamps" id="$autoCreateTimestamps"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoCreateTimestamps</span>
			 = <span class="var-default">array('create_at','create_on','cTime')</span>			(line <span class="line-number">96</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoDelRelations" id="$autoDelRelations"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoDelRelations</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">90</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoReadRelations" id="$autoReadRelations"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoReadRelations</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">92</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoSaveRelations" id="$autoSaveRelations"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoSaveRelations</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">89</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoTimeFormat" id="$autoTimeFormat"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoTimeFormat</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">98</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$autoUpdateTimestamps" id="$autoUpdateTimestamps"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$autoUpdateTimestamps</span>
			 = <span class="var-default">array('update_at','update_on','mTime')</span>			(line <span class="line-number">97</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$blobFields" id="$blobFields"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$blobFields</span>
			 = <span class="var-default">	 null</span>			(line <span class="line-number">100</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$blobValues" id="$blobValues"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$blobValues</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">101</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$composite" id="$composite"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$composite</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">78</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$data" id="$data"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$data</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">64</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$dataList" id="$dataList"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$dataList</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">70</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$db" id="$db"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$db</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">40</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$error" id="$error"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$error</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">73</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$fields" id="$fields"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$fields</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">58</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$lazyQuery" id="$lazyQuery"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$lazyQuery</span>
			 = <span class="var-default">	false</span>			(line <span class="line-number">93</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$name" id="$name"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$name</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">49</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$optimLock" id="$optimLock"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$optimLock</span>
			 = <span class="var-default"> 'lock_version'</span>			(line <span class="line-number">85</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$options" id="$options"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$options</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">67</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$pessimisticLock" id="$pessimisticLock"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$pessimisticLock</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">87</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$staticModel" id="$staticModel"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$staticModel</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">80</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$tableName" id="$tableName"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$tableName</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">52</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$tablePrefix" id="$tablePrefix"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$tablePrefix</span>
			 = <span class="var-default">	''</span>			(line <span class="line-number">43</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$tableSuffix" id="$tableSuffix"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$tableSuffix</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">46</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$trueTableName" id="$trueTableName"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$trueTableName</span>
			 = <span class="var-default">''</span>			(line <span class="line-number">55</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$type" id="$type"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$type</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">61</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$viewModel" id="$viewModel"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$viewModel</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">82</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_db" id="$_db"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$_db</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">37</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetInstance" id="getInstance"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static getInstance</span> (line <span class="line-number">164</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得模型实例对象</p>
	<ul class="tags">
				<li><span class="field">return:</span> 返回数据模型实例</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">mixed</span>
		<span class="method-name">
			getInstance
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">113</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">架构函数</p>
<p class="description"><p>取得DB类的实例对象 数据表字段检查</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Model</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 要创建的数据对象内容</span>			</li>
				</ul>
		
			
	</div>
<a name="methodadd" id="add"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">add</span> (line <span class="line-number">792</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">新增数据 支持数组、HashMap对象、std对象、数据对象</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			add
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$multi</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 数据</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 自动关联写入</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$multi</span><span class="var-description">: 多数据写入</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddAll" id="addAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addAll</span> (line <span class="line-number">1096</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">批量新增数据</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			addAll
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$dataList</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$dataList</span><span class="var-description">: 数据列表</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 自动关联操作</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddConnect" id="addConnect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">addConnect</span> (line <span class="line-number">2991</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">增加数据库连接</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			addConnect
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$config</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$linkNum</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$eqType</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$config</span><span class="var-description">: 数据库连接信息</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$linkNum</span><span class="var-description">: 创建的连接序号</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$eqType</span><span class="var-description">: 是否相同类型连接</span>			</li>
				</ul>
		
			
	</div>
<a name="methodavg" id="avg"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">avg</span> (line <span class="line-number">2183</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">统计某个字段的平均值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			avg
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcache" id="cache"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">cache</span> (line <span class="line-number">3221</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装lock</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			cache
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$cache</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lock</span><span class="var-description">: 是否锁定</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$cache</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcacheLockVersion" id="cacheLockVersion"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">cacheLockVersion</span> (line <span class="line-number">2284</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">记录乐观锁</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			cacheLockVersion
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 数据对象</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcheckCondition" id="checkCondition"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">checkCondition</span> (line <span class="line-number">920</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">检查条件中的视图字段</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			checkCondition
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 条件表达式</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcheckFields" id="checkFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">checkFields</span> (line <span class="line-number">968</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">检查fields表达式中的视图字段</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			checkFields
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcheckGroup" id="checkGroup"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">checkGroup</span> (line <span class="line-number">1054</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">检查Group表达式中的视图字段</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			checkGroup
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$group</span><span class="var-description">: 字段</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcheckLockVersion" id="checkLockVersion"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">checkLockVersion</span> (line <span class="line-number">1172</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">检查乐观锁</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			checkLockVersion
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">&$where</span> = <span class="var-default">''</span>], <span class="var-type">array</span>&nbsp;<span class="var-name">$data</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span><span class="var-description">: 当前数据</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$where</span><span class="var-description">: 查询条件</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$where</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcheckOrder" id="checkOrder"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">checkOrder</span> (line <span class="line-number">1014</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">检查Order表达式中的视图字段</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			checkOrder
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 字段</span>			</li>
				</ul>
		
			
	</div>
<a name="methodclear" id="clear"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">clear</span> (line <span class="line-number">1610</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">清空表数据</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			clear
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcommit" id="commit"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">commit</span> (line <span class="line-number">2892</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">提交事务</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			commit
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcount" id="count"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">count</span> (line <span class="line-number">2087</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">统计满足条件的记录个数</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			count
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">'*'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 要统计的字段 默认为*</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreate" id="create"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">create</span> (line <span class="line-number">2381</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">创建数据对象 但不保存到数据库</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			create
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$batch</span> = <span class="var-default">false</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 创建数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: 创建类型</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$batch</span><span class="var-description">: 批量创建</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcreateAll" id="createAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">createAll</span> (line <span class="line-number">2422</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">创建数据列表对象 但不保存到数据库</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			createAll
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$dataList</span> = <span class="var-default">''</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$type</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$dataList</span><span class="var-description">: 数据列表</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: 创建类型</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddelBlobFields" id="delBlobFields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">delBlobFields</span> (line <span class="line-number">717</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">删除File方式的字段</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			delBlobFields
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">''</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 保存的数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 查询的字段</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddelConnect" id="delConnect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">delConnect</span> (line <span class="line-number">3016</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">删除数据库连接</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			delConnect
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$linkNum</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$linkNum</span><span class="var-description">: 创建的连接序号</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddelete" id="delete"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">delete</span> (line <span class="line-number">1551</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据条件删除表数据</p>
<p class="description"><p>如果成功返回删除记录个数</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			delete
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 删除条件</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$limit</span><span class="var-description">: 要删除的记录数</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 删除的顺序</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 是否关联删除</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteAll" id="deleteAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteAll</span> (line <span class="line-number">1583</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据条件删除数据</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			deleteAll
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 删除条件</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 是否关联删除</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteBy" id="deleteBy"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteBy</span> (line <span class="line-number">1530</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据某个字段删除数据</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			deleteBy
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名称</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: 字段值</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$limit</span><span class="var-description">: 要删除的记录数</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 删除的顺序</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 是否关联删除</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteById" id="deleteById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteById</span> (line <span class="line-number">1489</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据主键删除数据</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			deleteById
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$id</span><span class="var-description">: 主键值</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 是否关联删除</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteByIds" id="deleteByIds"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteByIds</span> (line <span class="line-number">1509</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据多个主键删除数据</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			deleteByIds
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$ids</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$ids</span><span class="var-description">: 多个主键值</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$limit</span><span class="var-description">: 要删除的记录数</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 删除的顺序</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 是否关联删除</span>			</li>
				</ul>
		
			
	</div>
<a name="methodexecute" id="execute"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">execute</span> (line <span class="line-number">1879</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">执行SQL语句</p>
	<ul class="tags">
				<li><span class="field">return:</span> | integer</li>
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">false</span>
		<span class="method-name">
			execute
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: SQL指令</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfield" id="field"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">field</span> (line <span class="line-number">3125</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 field</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			field
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfind" id="find"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">find</span> (line <span class="line-number">1730</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据条件得到一条记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			find
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否读取缓存</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联查询</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfindAll" id="findAll"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">findAll</span> (line <span class="line-number">1783</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查找记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
		<span class="method-name">
			findAll
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 查询字段</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$limit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$group</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$having</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$join</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否读取缓存</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联查询</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfirst" id="first"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">first</span> (line <span class="line-number">2249</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取满足条件的第一条记录</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			first
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否读取关联</span>			</li>
				</ul>
		
			
	</div>
<a name="methodflush" id="flush"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">flush</span> (line <span class="line-number">588</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">强制刷新数据表信息</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			flush
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetBlobFields" id="getBlobFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getBlobFields</span> (line <span class="line-number">658</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取数据的文本字段</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getBlobFields
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">''</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 查询的数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 查询的字段</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetBy" id="getBy"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getBy</span> (line <span class="line-number">1685</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据某个字段得到一条记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getBy
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名称</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: 字段的值</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存查询</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联查询</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetByAll" id="getByAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getByAll</span> (line <span class="line-number">1708</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据某个字段获取全部记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getByAll
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名称</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: 字段的值</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存查询</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联查询</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetById" id="getById"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getById</span> (line <span class="line-number">1637</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据主键得到一条记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getById
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$id</span><span class="var-description">: 主键的值</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联读取</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetByIds" id="getByIds"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getByIds</span> (line <span class="line-number">1659</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据主键范围得到多个记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getByIds
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$ids</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$ids</span><span class="var-description">: 主键的范围 如 1,3,4,7 array(1,2,3)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联读取</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$order</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$limit</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCol" id="getCol"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getCol</span> (line <span class="line-number">2026</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取查询结果中的某个字段值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getCol
		</span>
					(<span class="var-type">ArrayObject</span>&nbsp;<span class="var-name">$rs</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">ArrayObject</span>
				<span class="var-name">$rs</span><span class="var-description">: 查询结果</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCols" id="getCols"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getCols</span> (line <span class="line-number">2052</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取查询结果中的多个字段值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getCols
		</span>
					(<span class="var-type">ArrayObject</span>&nbsp;<span class="var-name">$rs</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$sepa</span> = <span class="var-default">' '</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$spea</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">ArrayObject</span>
				<span class="var-name">$rs</span><span class="var-description">: 查询结果</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名用逗号分割多个</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$spea</span><span class="var-description">: 多字段分割符号</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sepa</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetDbFields" id="getDbFields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getDbFields</span> (line <span class="line-number">2948</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">返回数据库字段信息</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getDbFields
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetError" id="getError"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getError</span> (line <span class="line-number">2935</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">返回当前错误信息</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getError
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetField" id="getField"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getField</span> (line <span class="line-number">1906</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取一条记录的某个字段值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 查询条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetFields" id="getFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getFields</span> (line <span class="line-number">1931</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取数据集的个别字段值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getFields
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$sepa</span> = <span class="var-default">' '</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$spea</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名称</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$spea</span><span class="var-description">: 多字段分割符号</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sepa</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetIterator" id="getIterator"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getIterator</span> (line <span class="line-number">742</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取Iterator因子</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Iterate</span>
		<span class="method-name">
			getIterator
		</span>
				()
			</div>
	
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt>IteratorAggregate::getIterator</dt>
					</dl>
			
	</div>
<a name="methodgetLastInsID" id="getLastInsID"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getLastInsID</span> (line <span class="line-number">2961</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">返回最后插入的ID</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getLastInsID
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetLastSql" id="getLastSql"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getLastSql</span> (line <span class="line-number">2974</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">返回最后执行的sql语句</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getLastSql
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetListBlobFields" id="getListBlobFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getListBlobFields</span> (line <span class="line-number">637</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取数据集的文本字段</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getListBlobFields
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$resultSet</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">''</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$resultSet</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$resultSet</span><span class="var-description">: 查询的数据</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 查询的字段</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$resultSet</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetModelName" id="getModelName"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getModelName</span> (line <span class="line-number">2723</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">得到当前的数据对象名称</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getModelName
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetN" id="getN"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getN</span> (line <span class="line-number">2209</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询符合条件的第N条记录</p>
<p class="description"><p><ol><li>表示第一条记录 -1 表示最后一条记录</li></ol></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getN
		</span>
					([<span class="var-type">integer</span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">0</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$position</span><span class="var-description">: 记录位置</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否读取关联</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetPk" id="getPk"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPk</span> (line <span class="line-number">2922</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">得到主键名称</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getPk
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetRelation" id="getRelation"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getRelation</span> (line <span class="line-number">1222</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取返回数据的关联记录</p>
<p class="description"><p>relation['name'] 关联名称 relation['type'] 关联类型</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getRelation
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$result</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$result</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$result</span><span class="var-description">: 返回数据</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$relation</span><span class="var-description">: 关联信息</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$result</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetRelations" id="getRelations"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getRelations</span> (line <span class="line-number">1326</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取返回数据集的关联记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			getRelations
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$resultSet</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$result</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$result</span><span class="var-description">: 返回数据</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$relation</span><span class="var-description">: 关联信息</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$resultSet</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetRelationTableName" id="getRelationTableName"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getRelationTableName</span> (line <span class="line-number">2786</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">得到关联的数据表名</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getRelationTableName
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 关联对象</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetTableName" id="getTableName"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getTableName</span> (line <span class="line-number">2746</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">得到完整的数据表名</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getTableName
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgroup" id="group"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">group</span> (line <span class="line-number">3109</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 group</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			group
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$group</span>			</li>
				</ul>
		
			
	</div>
<a name="methodhaving" id="having"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">having</span> (line <span class="line-number">3173</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 having</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			having
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$having</span>			</li>
				</ul>
		
			
	</div>
<a name="methodjoin" id="join"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">join</span> (line <span class="line-number">3157</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 join</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			join
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$join</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$join</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlast" id="last"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">last</span> (line <span class="line-number">2267</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获取满足条件的第后一条记录</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			last
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否读取关联</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlazy" id="lazy"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">lazy</span> (line <span class="line-number">3189</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 惰性</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			lazy
		</span>
					(<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlimit" id="limit"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">limit</span> (line <span class="line-number">3141</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 limit</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			limit
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$limit</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$limit</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlock" id="lock"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">lock</span> (line <span class="line-number">3205</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装lock</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			lock
		</span>
					(<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lock</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lock</span><span class="var-description">: 是否锁定</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmax" id="max"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">max</span> (line <span class="line-number">2111</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得某个字段的最大值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			max
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmin" id="min"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">min</span> (line <span class="line-number">2135</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得某个字段的最小值</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			min
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodopRelation" id="opRelation"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">opRelation</span> (line <span class="line-number">1356</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">操作关联数据</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			opRelation
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$opType</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$opType</span><span class="var-description">: 操作方式 ADD SAVE DEL</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 数据对象</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$relation</span><span class="var-description">: 关联信息</span>			</li>
				</ul>
		
			
	</div>
<a name="methodorder" id="order"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">order</span> (line <span class="line-number">3077</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 order</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			order
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span>			</li>
				</ul>
		
			
	</div>
<a name="methodquery" id="query"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">query</span> (line <span class="line-number">1861</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">SQL查询</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
		<span class="method-name">
			query
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: SQL指令</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否缓存</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrollback" id="rollback"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">rollback</span> (line <span class="line-number">2908</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">事务回滚</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			rollback
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodrsToVo" id="rsToVo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">rsToVo</span> (line <span class="line-number">2310</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">把查询结果转换为数据（集）对象</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			rsToVo
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$resultSet</span>, [<span class="var-type">Boolean</span>&nbsp;<span class="var-name">$returnList</span> = <span class="var-default">false</span>], [<span class="var-type">Integer</span>&nbsp;<span class="var-name">$position</span> = <span class="var-default">0</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$resultSet</span><span class="var-description">: 查询结果记录集</span>			</li>
					<li>
				<span class="var-type">Boolean</span>
				<span class="var-name">$returnList</span><span class="var-description">: 是否返回记录集</span>			</li>
					<li>
				<span class="var-type">Integer</span>
				<span class="var-name">$position</span><span class="var-description">: 定位的记录集位置</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否获取关联</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">save</span> (line <span class="line-number">1124</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">更新数据</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			save
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$autoLink</span> = <span class="var-default">false</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 要更新的数据</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$where</span><span class="var-description">: 更新数据的条件</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$autoLink</span><span class="var-description">: 自动关联操作</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$limit</span><span class="var-description">: 要更新的记录数</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 更新的顺序</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsaveBlobFields" id="saveBlobFields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">saveBlobFields</span> (line <span class="line-number">694</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">保存File方式的字段</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			saveBlobFields
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 保存的数据</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetDec" id="setDec"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setDec</span> (line <span class="line-number">2004</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">字段值减少</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			setDec
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$step</span><span class="var-description">: 减少值</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetField" id="setField"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setField</span> (line <span class="line-number">1958</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">设置记录的某个字段值</p>
<p class="description"><p>支持使用数据库字段和方法  例如 setField('score','(score+1)','id=5');</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			setField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span><span class="var-description">: 字段值</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetInc" id="setInc"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setInc</span> (line <span class="line-number">1981</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">字段值增长</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			setInc
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$step</span> = <span class="var-default">1</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$step</span><span class="var-description">: 增长值</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsql" id="sql"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">sql</span> (line <span class="line-number">3237</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			sql
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span><span class="var-description">: sql语句</span>			</li>
				</ul>
		
			
	</div>
<a name="methodstartLazy" id="startLazy"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">startLazy</span> (line <span class="line-number">2806</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">开启惰性查询</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			startLazy
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodstartLock" id="startLock"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">startLock</span> (line <span class="line-number">2840</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">开启锁机制</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			startLock
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodstartTrans" id="startTrans"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">startTrans</span> (line <span class="line-number">2874</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">启动事务</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			startTrans
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodstopLazy" id="stopLazy"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">stopLazy</span> (line <span class="line-number">2823</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">关闭惰性查询</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			stopLazy
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodstopLock" id="stopLock"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">stopLock</span> (line <span class="line-number">2857</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">关闭锁机制</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			stopLock
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsum" id="sum"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">sum</span> (line <span class="line-number">2159</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">统计某个字段的总和</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			sum
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: 字段名</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
				</ul>
		
			
	</div>
<a name="methodswitchConnect" id="switchConnect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">switchConnect</span> (line <span class="line-number">3035</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">切换数据库连接</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			switchConnect
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$linkNum</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$linkNum</span><span class="var-description">: 创建的连接序号</span>			</li>
				</ul>
		
			
	</div>
<a name="methodtable" id="table"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">table</span> (line <span class="line-number">3093</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 table</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			table
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$table</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$table</span>			</li>
				</ul>
		
			
	</div>
<a name="methodtoArray" id="toArray"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">toArray</span> (line <span class="line-number">767</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">把数据对象转换成数组</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			toArray
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtopN" id="topN"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">topN</span> (line <span class="line-number">1842</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查找前N个记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
		<span class="method-name">
			topN
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$count</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$relation</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$count</span><span class="var-description">: 记录个数</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 查询字段</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$group</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$having</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$join</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否读取缓存</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$relation</span><span class="var-description">: 是否关联查询</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodwhere" id="where"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">where</span> (line <span class="line-number">3061</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询SQL组装 where</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Think/Core/Model.html">Model</a></span>
		<span class="method-name">
			where
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$where</span>			</li>
				</ul>
		
			
	</div>
<a name="methodxFind" id="xFind"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">xFind</span> (line <span class="line-number">1756</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">根据条件得到一条记录</p>
<p class="description"><p>并且返回关联记录</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			xFind
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 字段名，默认为*</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否读取缓存</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="methodxFindAll" id="xFindAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">xFindAll</span> (line <span class="line-number">1815</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">查询记录并返回相应的关联记录</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">ArrayObject|<a href="../../Think/Db/ResultIterator.html">ResultIterator</a></span>
		<span class="method-name">
			xFindAll
		</span>
					([<span class="var-type">mixed</span>&nbsp;<span class="var-name">$condition</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fields</span> = <span class="var-default">'*'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$having</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$join</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$cache</span> = <span class="var-default">false</span>], <span class="var-type">boolean</span>&nbsp;<span class="var-name">$lazy</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$condition</span><span class="var-description">: 条件</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fields</span><span class="var-description">: 查询字段</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: 排序</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$limit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$group</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$having</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$join</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$cache</span><span class="var-description">: 是否读取缓存</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$lazy</span><span class="var-description">: 是否惰性查询</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_create" id="_after_create"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_after_create</span> (line <span class="line-number">317</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_create
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_delete" id="_after_delete"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_after_delete</span> (line <span class="line-number">507</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_delete
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$where</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_operation" id="_after_operation"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_after_operation</span> (line <span class="line-number">2712</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_operation
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_query" id="_after_query"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_after_query</span> (line <span class="line-number">550</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_query
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$result</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$result</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_read" id="_after_read"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_after_read</span> (line <span class="line-number">453</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_read
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$condition</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$result</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$condition</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$result</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_update" id="_after_update"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_after_update</span> (line <span class="line-number">371</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_update
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$where</span>			</li>
				</ul>
		
			
	</div>
<a name="method_after_validation" id="_after_validation"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_after_validation</span> (line <span class="line-number">2708</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_after_validation
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$type</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$type</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_create" id="_before_create"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_before_create</span> (line <span class="line-number">316</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_create
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_delete" id="_before_delete"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_before_delete</span> (line <span class="line-number">506</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_delete
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$where</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_operation" id="_before_operation"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_before_operation</span> (line <span class="line-number">2711</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_operation
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_query" id="_before_query"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_before_query</span> (line <span class="line-number">549</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_query
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$sql</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$sql</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_read" id="_before_read"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_before_read</span> (line <span class="line-number">452</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_read
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$condition</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$condition</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_update" id="_before_update"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_before_update</span> (line <span class="line-number">370</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_update
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$where</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$where</span>			</li>
				</ul>
		
			
	</div>
<a name="method_before_validation" id="_before_validation"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_before_validation</span> (line <span class="line-number">2707</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_before_validation
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$data</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$type</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$data</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$type</span>			</li>
				</ul>
		
			
	</div>
<a name="method_facade" id="_facade"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_facade</span> (line <span class="line-number">837</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">对保存到数据库的数据对象进行处理</p>
<p class="description"><p>统一使用数组方式到数据库中间层 facade字段支持</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			_facade
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$data</span><span class="var-description">: 要操作的数据</span>			</li>
				</ul>
		
			
	</div>
<a name="method_initialize" id="_initialize"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_initialize</span> (line <span class="line-number">275</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_initialize
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 27 Mar 2008 08:20:47 +0000 by 塞北的雪
	</p>
	</div></body>
</html>